package com.aiyige.model.moment.backup;

import com.aiyige.model.moment.entity.SinglePhoto;

import java.util.LinkedList;
import java.util.List;

/**
 * Created by xiachao on 2018/1/23.
 */

public class PhotoBackup {
    String id;
    String photoCount;
    List<SinglePhoto> photos;

    public PhotoBackup() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhotoCount() {
        return photoCount;
    }

    public void setPhotoCount(String photoCount) {
        this.photoCount = photoCount;
    }

    public List<SinglePhoto> getPhotos() {
        return photos;
    }

    public void setPhotos(List<SinglePhoto> photos) {
        this.photos = photos;
    }

    public PhotoBackup(PhotoBackup other) {
        if (other == null) {
            this.id = "";
            this.photoCount = "";
            this.photos = new LinkedList<>();
        } else {
            this.id = other.id == null ? "" : other.id;
            this.photoCount = other.photoCount == null ? "" : other.photoCount;
            this.photos = other.photos == null ? new LinkedList<SinglePhoto>() : other.photos;
        }

    }
}
